import type { RouteRecordRaw } from 'vue-router'

export const staticRoutes: RouteRecordRaw[] = [
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/LoginView/index.vue'),
    meta: { title: '登录页面', public: true },
  },
  {
    path: '/403',
    name: 'Forbidden',
    component: () => import('@/views/403/index.vue'),
    meta: { title: '403无权限页面', public: true },
  },
  {
    path: '/404',
    name: 'NotFound',
    component: () => import('@/views/404/index.vue'),
    meta: { title: '404未找到页面', public: true },
  },
  {
    path: '/:pathMatch(.*)*',
    redirect: '/404', // 重定向到明确的 /404
    meta: { public: true },
  },
]
